package cn.edu.cug.cs.gtl.plugins.redner4oi.nodes;

import cn.edu.cug.cs.gtl.apis.render.nodes.Background;
import com.openinventor.inventor.nodes.SoBackground;

public class BackgroundImpl extends NodeImpl implements Background {
    public BackgroundImpl() {
        super();
    }
    public BackgroundImpl(SoBackground background) {
        super();
        this.nativeObject = background;
    }
    @Override
    public boolean attach(Object nativeObject) {
        if(nativeObject instanceof SoBackground)
            this.nativeObject = (SoBackground)nativeObject;
        else
            return false;

        return true;
    }
}
